package com.wangzhixuan.commons.utils;

import java.util.Calendar;

public class DateUtils {

	public static long calDaysWithSysDate(java.util.Date lockDate) {
		long result = 0;
		Calendar cal = Calendar.getInstance();

		long difference = (cal.getTime().getTime() - lockDate.getTime()) / 86400000;
		result = Math.abs(difference);

		return result;
	}
}
